﻿import { DataProvider } from './DataProvider';
import { ConvexPolyhedron } from './ConvexPolyhedron';
import { Vector3 } from './Vector3';


test();

function test() {
    var hedron0 = new ConvexPolyhedron();
    var points0 = DataProvider.getPoints(0);
    var indices0 = DataProvider.getIndex(0);
    hedron0.setValue(points0, indices0);
    //node.js
    //hedron0.load("D:\\test\\convex\\hedra0.off"); 
    var hedron1 = new ConvexPolyhedron();
    var points1 = DataProvider.getPoints(1);
    var indices1 = DataProvider.getIndex(1);
    hedron1.setValue(points1, indices1);
    //node.js
    //hedron2.load("D:\\test\\convex\\hedra1.off");
    var hedron = hedron0.computeIntersection(hedron1);
 //    hedron.save("D:\\test\\convex\\ret_ts.msh");
}